package com.ms.education.ucenter.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ms.education.ucenter.entity.TeacherApplication;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author ms
 * @since 2023-02-28
 */
public interface TeacherApplicationService extends IService<TeacherApplication> {

    //查询用户申请
    TeacherApplication getUserApply(Integer userId);

    //用户提交申请
    void applyForTeacher(TeacherApplication teacherApplication);

    Page<TeacherApplication> pageUserApply(long current, long limit, TeacherApplication teacherApplication);

    //申请通过
    void successApply(Integer id);

    //申请不通过
    void failApply(Integer id);
}
